<?php

namespace app\common\model;

use think\Model;

class Pay extends Model
{
    // 表名
    protected $name = 'pay';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    // 追加属性
    protected $append = [

    ];

    public function project()
    {
        return $this->belongsTo('PayProject', 'project_id', 'id');
    }

    public function paylog()
    {
      return $this->hasMany('PayApplyLog', 'payid', 'id');
    }
}
